package com.baizhi.service;

import com.baizhi.dao.CommitDAO;
import com.baizhi.dao.CommitDAOImpl;
import com.baizhi.entity.Commit;

import java.util.List;

public class CommitServiceImpl implements CommitService{
    private CommitDAO cd = new CommitDAOImpl();
    @Override
    public void addCom(Commit commit) {
        cd.addComit(commit);
    }

    @Override
    public List<Commit> showAll(Commit commit) {
        return cd.queryAll(commit);
    }
}
